# $Id$
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-fonts-alias
pkgver=1.0.3
pkgrel=2
pkgdesc="X.org font alias files"
arch=('any')
url="https://xorg.freedesktop.org/"
license=('custom')
source=("${url}/releases/individual/font/font-alias-${pkgver}.tar.bz2"
        'LICENSE')
sha512sums=('05abfef4615722d8cf3f21ab1118494522553a75427140d9753b3d312f404735c20766ceacc1b53f9e783ea25ec8f2f6bdb8696525a4962afe29f524ed8b6552'
            '1b1ee34b5dc6200bb8352b5d1946a1bd48d8f365c7a3f892ddd7dda8553c4a09ec7adc3b3355706b33fe57b5d97afdd99dd9c1f292a091c56d91e069ce12c15e')

build() {
  cd "${srcdir}/font-alias-${pkgver}"
  ./configure --prefix=/usr --with-fontrootdir=/usr/share/fonts
  make
}

package() {
  cd "${srcdir}/font-alias-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
